Sales Tax Calculator Tool Script 100% Free To Download
100% Free To Download This Script.
100% Free With “Resell Rights”.
Sell These Tools S As Per Your Need Or Offer Free To Anyone Give Giveaway Also.
About : Free Tools.
License: Rana bilal Rights
Use In This Website Any Script Or Any Products You Will Download 100% Free To Use.
How To Use This Script
Use This Script WordPress Or Blogger Anyone You Choose Use This Script And Publish Your Online Tool And Make Passive Income.
Login Your WordPress Or Blogger Dashboard.
Copy This Code Or Download.
And Post Or Page.
Add HTML Widget.
Paste This Code And Publish.
After See The Result, Magic..
Demo
Script Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sales Tax Calculator</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f9f9f9;
}
#container {
text-align: center;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
margin-bottom: 10px;
display: block;
}
input {
padding: 8px;
margin-bottom: 15px;
}
#calculateButton {
padding: 10px;
background-color: #3498db;
color: white;
border: none;
cursor: pointer;
}
#result {
margin-top: 20px;
font-weight: bold;
}
</style>
</head>
<body>
<div id="container">
<h2>Sales Tax Calculator</h2>
<label for="subtotal">Subtotal ($):</label>
<input type="number" id="subtotal" placeholder="Enter subtotal">
<label for="taxRate">Tax Rate (%):</label>
<input type="number" id="taxRate" placeholder="Enter tax rate">
<button onclick="calculateTotal()" id="calculateButton">Calculate Total</button>
<p id="result"></p>
</div>
<script>
function calculateTotal() {
var subtotal = parseFloat(document.getElementById("subtotal").value) || 0;
var taxRate = parseFloat(document.getElementById("taxRate").value) || 0;
var taxAmount = (subtotal * taxRate) / 100;
var total = subtotal + taxAmount;
document.getElementById("result").textContent = "Total Amount (including tax): $" + total.toFixed(2);
}
</script>
</body>
</html>